package com.fengniu.ejb.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "User2ContentTable", schema = "FENGNIU", uniqueConstraints = {})
public class User2Content extends GeneRelation implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6345829025903839548L;

	@ManyToOne
	User user;

	@ManyToOne
	Content content;

	private String userContentImage1;

	private String userContentImage2;

	private String userContentImage3;

	@Temporal(value = TemporalType.TIMESTAMP)
	private Date lastVisitedDate;

	private String userLotteryNum;

	private Double price;

	private Integer validDays;

	public Date getLastVisitedDate() {
		return lastVisitedDate;
	}

	public void setLastVisitedDate(Date lastVisitedDate) {
		this.lastVisitedDate = lastVisitedDate;
	}

	public Content getContent() {
		return content;
	}

	public void setContent(Content content) {
		this.content = content;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getValidDays() {
		return validDays;
	}

	public void setValidDays(Integer validDays) {
		this.validDays = validDays;
	}

	public String getUserLotteryNum() {
		return userLotteryNum;
	}

	public void setUserLotteryNum(String userLotteryNum) {
		this.userLotteryNum = userLotteryNum;
	}

	public String getUserContentImage1() {
		return userContentImage1;
	}

	public void setUserContentImage1(String userContentImage1) {
		this.userContentImage1 = userContentImage1;
	}

	public String getUserContentImage2() {
		return userContentImage2;
	}

	public void setUserContentImage2(String userContentImage2) {
		this.userContentImage2 = userContentImage2;
	}

	public String getUserContentImage3() {
		return userContentImage3;
	}

	public void setUserContentImage3(String userContentImage3) {
		this.userContentImage3 = userContentImage3;
	}

}
